<?php

namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
class QtorderController extends Controller
{
    public function getIndex(){
      $data = DB::table('order')->get();
      $dataa = DB::table('order')->where('state','=','1')->get();
      $datab = DB::table('order')->where('state','=','2')->get();
      $datac = DB::table('order')->where('state','=','3')->get();
      $datad = DB::table('order')->where('state','=','4')->get();
      $datae = DB::table('order')->where('state','=','5')->get();
 

        return view('/home/order/index',['data'=>$data,'dataa'=> $dataa,'datab'=> $datab,'datac'=> $datac,'datad'=> $datad,'datae'=>$datae]);
    }
}
